<?php
#
# (c)2008 South Hill Calvary Chapel
#

$linkList = array("childrens_ministry.php", "shcc-cm-parents.php");
$textList = array("Children's Ministry", "Parent Connections");

include_once("./root.inc.php");
include_once("${root}/common.php");
include_once("${root}/mysql/database_info.php");
include_once("${root}/mysql/common.php");


$title = "Children's Ministry Teacher Resources";
$meta_key='teacher, minister, servant, children, kids, bible, craft, game, worship, sunday, school, jesus';
$meta_desc="Children's Ministry resources for teachers at at South Hill Calvary Chapel.";
print_html_head($title ,$meta_key,$meta_desc);

print_java_head(NULL);
begin_body();
page_title($title);

$user = "Children";
$pwd = "Come2Me";
if ($_POST['txtUsername']!= $user || $_POST['txtPassword']!= $pwd) {
	printf("<form name='form' method='post' action='%s';>\n", $_SERVER['PHP_SELF']);
	printf("Username: <input type='text' name='txtUsername' />\n");
	printf("Password: <input type='password' name='txtPassword' />\n");
	printf("<input type='submit' value='Submit' />\n");
	printf("</form>\n");
} else {

$verse = array(
"And [Jesus] is the head of the body, the church, who is the beginning, the firstborn from the dead, that in all things He may have the preeminence.",
"Colossians 1:18");
$logo="ministries/cm/SHCC_CMlogo_crop_nobg.gif";
$leader = array (
"Alan Chappell",
"253.841.5680",
"alanc@southhillcalvary.org"
);
$blessing="Do not grow weary in doing good!";

right_bar_open("CM", "http://www.facebook.com/pages/South-Hill-Calvary-Chapel-Childrens-Ministry/139066919439983");

$table = "events";
connect_select_test($table);
$query="SELECT * FROM $table WHERE ministry='CM' ORDER BY start ASC";
$result=mysql_query($query) or die (mysql_error());
$num_rows=mysql_num_rows($result);
ministry_event_table($result, $num_rows);
//Close the database
mysql_close();
printf("<br>\n");

$resource=array(
array("http://docs.google.com/Doc?id=dgjkqv8q_41d43bc7", "Web Resources"),
array("shcc-cm-serve.php","S.E.R.V.e."),
array("ministries/cm/SHCC_Manual.pdf","CM Manual"),
array("ministries/cm/Children%27sMinistryApplication.pdf","CM Application"),
array("ministries/cm/BackgroundCheckAuthorizationandRelease.pdf","Background Screening"),
array("ministries/cm/PermissionSlip.pdf","Parental Consent Form"));
ministry_resource_table($resource, "Resources");

right_bar_close();


ministry_header($verse, $logo);
?>
<div class='paragraph'>
	This page is meant to help you minister to the kids at South 
	Hill Calvary Chapel.  Click on the links below to find the 
	information you need.  If you need assistance please contact
	<a href="mailto:alanc@southhillcalvary.org">Alan Chappell</a>.
</div>
<div class='paragraph'>
	<b> Schedules: </b>
	<?php find_schedules("CM"); ?>
	<br>
	<b> Availability Form: </b>
	<?php find_schedules("CMForm"); ?>
	<br>For scheduling changes contact
	<a href="mailto:gerritf@southhillcalvary.org">Gerrit Foster</a>
</div>
<div class='paragraph'>
	<b>CM Training:</b>
  <a href='shcc-cm-serve.php'>S.E.R.V.e.</a> 
	is an opporunity for children's minister growth.    
</div>
<div class='paragraph'>
	<b>Curriculum Information:</b>
	<ul>
		<li>
			<a href="http://spreadsheets.google.com/pub?key=p4K-MgOIzAUyRMGYz09uFIA" target="_blank">Gospel Light Overview</a>:
			This chart identifies on which date lessons are taught and it gives the 
			curriculum inventory. Click on the tab at the top to choose which 
			curriculum to view (Gospel Light).
		</li>
		<li>
			<a href="https://drive.google.com/folderview?id=0B6kTqZ9wJTGDczNMZnBmV0VfcHc&usp=sharing">Parent Connections</a>
		</li>
		<li>
			<a href="https://docs.google.com/spreadsheet/ccc?key=0AqkTqZ9wJTGDdFB4OE1kOEVhX2hQYlF4ODR6TjVNSnc&usp=sharing" target="_blank">Treasuring Christ Curriculum</a>
		</li>
		<li>
			<a href="http://lessons.lifebiblestudykids.com/" target="_blank">Treasuring Christ Login</a>
		</li>
	</ul>
</div>
<div class='paragraph'>
	<b>Class Outlines:</b>
	Click on the age group below for the recommended class outlines.
	<ul>
		<li> Sunday:
		<a style="text-decoration: underline" href="http://docs.google.com/Doc?id=dgjkqv8q_379mfsmdggr" target="_blank">Nursery</a>,
		<a style="text-decoration: underline" href="http://docs.google.com/Doc?id=dgjkqv8q_380cf75mzdw" target="_blank">Walkers</a>,
			<a style="text-decoration: underline" href="http://docs.google.com/Doc?id=dgjkqv8q_382hfnwtqff" target="_blank">2&amp;3 Year Olds</a>,
			<a target="_blank" style="text-decoration: underline" href="http://docs.google.com/Doc?id=dgjkqv8q_383cv6h8wf9">4yrs thru 5th Grade</a>
		</li>
		<li>
			Wednesday:
			<a target="_blank" href="http://docs.google.com/Doc?id=dgjkqv8q_430gnw3948h">4yrs thru 5th Grade</a>
		</li>
	</ul>
</div>

<?php
ministry_footer($leader, $blessing);


} //Password Protect

in_page_link(2, false, $linkList, $textList, "");
end_page_title();
end_body();
?>
